package com.ly.springcloud.service.impl;

import com.ly.springcloud.dao.PaymentDao;
import com.ly.springcloud.entities.Payment;
import com.ly.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author: liangyuan
 * @Date: 2020/10/27 11:30:31
 * @Description: 支付模块业务逻辑层实现类
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentDao paymentDao;

    @Override
    public int savePayment(Payment payment) {
        return paymentDao.savePayment(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
